/*
 * @Author: your name
 * @Date: 2021-04-05 22:02:58
 * @LastEditTime: 2021-04-05 23:00:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \react-demo\mock\mock-home.js
 */

const { Random } = Mock
const baseURL = "http://www.mock-js.com"
Mock.mock(baseURL + "/home/getPageData", {
    "code": 200,
    "status":200,
    "data": {
        "list|1-100": [
            {
                "id|+1":1,
                "mtime": "@datetime",//随机生成日期时间
                "score|1-800": 800,//随机生成1-800的数字
                "rank|1-100": 100,//随机生成1-100的数字
                "stars|1-5": 5,//随机生成1-5的数字
                "nickname": "@cname",//随机生成中文名字
                "image": "@image('200x200', '@hex', '@color', 'png', '@cname')"
            }
        ]
    }
})
